package com.feiyuan.book.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.feiyuan.book.vo.BookChapterVO;
import com.feiyuan.book.vo.BookContentVO;
import com.feiyuan.common.utils.PageUtils;
import com.feiyuan.book.entity.BookContentEntity;

import java.util.Map;

/**
 * 书籍内容
 *
 * @author Xupf
 * @email xupengfei131276@126.com
 * @date 2024-10-10 20:44:22
 */
public interface BookContentService extends IService<BookContentEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 获取章节内容
     * @param bookChapter 章节信息
     * @return BookContentVO
     */
    BookContentVO getBqgContent(BookChapterVO bookChapter);

    /**
     * 查询书籍章节和章节内容
     * @param bookContent 书籍章节网络ID和书籍网络ID
     * @return Map
     */
    Map<String, Object> queryBqgChapterAndContent(BookContentVO bookContent);
}

